<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="JQuery/themes/default/easyui.css" />
<link rel="stylesheet" type="text/css" href="JQuery/themes/icon.css" />
<link type="text/css" rel="stylesheet" href="css/common.css" />
<script language="javascript" src="JQuery/jquery-1.7.1.min.js"></script>
<script language="javascript" src="JQuery/jquery.easyui.min.js"></script>
<script language="javascript" src="xheditor-1.1.12/xheditor-1.1.12-zh-cn.min.js"></script>
<script language="javascript" src="js/common.js"></script>
<script language="javascript" src="js/sendemail-add.js"></script>
</head>
<body>
<table width="66%" border="0" cellpadding="0" cellspacing="0">
<form name="sendemail_form1" id="sendemail_form1" method="post">
<tr>
  <td height="28" align="right">发送邮箱:</td>
  <td height="28" colspan="2">&nbsp;<select name="email" id="group3" style="width:200px">
    <!-- BEGIN email_list -->
    <option value="{id}">{email}</option>
    <!-- END email_list -->
  </select></td>
</tr>
<tr>
  <td height="28" align="right">邮件标题: </td>
  <td height="28" colspan="2">&nbsp;<input name="title" type="text" size="60"/></td>
</tr>
<tr>
  <td width="6%" rowspan="4" align="right" valign="top"><img src="javascript:void(0)" width="66" height="3" style="visibility:hidden"></td>
  <td height="28"><input name="stype" type="radio" id="stype_1" value="0" checked/><label for="stype_1">群发用户</label></td>
  <td height="28"><select name="group" id="select" style="width:120px">
    <!-- BEGIN group_list -->
    <option value="{tb}">{glname}</option>
    <!-- END group_list -->
  </select>
    &nbsp;&nbsp;
  <input name="sendnow" type="checkbox" value="1" checked id="sendnow_1"><label for="sendnow_1">立即开始执行</label>
&nbsp;&nbsp;先择群发编号位(1-32):<select name="group3" id="group" style="width:80px">
  <!-- BEGIN send_no -->
  <option value="{no}">{no}</option>
  <!-- END send_no -->
</select></td>
</tr>
<tr>
  <td width="7%" height="28"><img src="javascript:void(0)" width="74" height="11" style="visibility:hidden"></td>
  <td width="87%" height="28">发送时间间隔:
    <input name="sendint" value="1" size="6" id="sendint" />
    * 10分钟&nbsp;&nbsp;&nbsp;&nbsp;每次发送:
  <input name="sendcount" value="1000" size="6" id="sendcount" />
    封</td>
</tr>
<tr>
  <td height="28"><input type="radio" name="stype" id="stype_2" value="1"/><label for="stype_2">到期提醒</label></td>
  <td height="28"><select name="group2" id="group2" style="width:120px">
    <!-- BEGIN group_list2 -->
    <option value="{tb}">{glname}</option>
    <!-- END group_list2 -->
    </select>
    &nbsp;&nbsp;
    <input name="sendnow_2" type="checkbox" value="1" checked id="sendnow_2"><label for="sendnow_2">立即生效</label></td>
</tr>
<tr>
  <td height="28">&nbsp;</td>
  <td height="28">提醒时间:<input name="lastday" value="30" size="6">
    天, 每 <input name="cycle" value="7" size="6" id="cycle">
    天提醒一次</td>
</tr>
<tr>
  <td rowspan="3" align="right" valign="top" style="padding:6px">发送内容:</td>
  <td height="25" colspan="2">&nbsp;邮件变量替换规 {QQ} =&gt; QQ号, {name} =&gt; 昵称, {license} =&gt; 服务账号, {lastdt} =&gt; 到期时间, {data} =&gt; 当前日期, {rest} =&gt; 剩余天数, {email} =&gt; email地址, {eid} =&gt; 邮件的ID号</td>
</tr>
<tr>
  <td height="34"><input name="mtype" id="mtype_1" type="radio" value="0"/><label for="mtype_1">发送网页</label></td>
  <td height="34"><input name="url" type="text" id="sendemail_url" size="60"/>
&nbsp; <a href="javascript:void(0)" class="easyui-linkbutton" onClick="OnSubmit()">预览</a></td>
</tr>
<tr>
  <td align="left" valign="top">
  <input name="mtype" type="radio" id="mtype_2" value="1" checked/><label for="mtype_2">编辑邮件</label></td>
  <td align="left"><textarea id="sendbody" name="sendbody" style="width:800px; height:280px;">{Editor}</textarea></td>
</tr>
<tr>
  <td height="40" colspan="3" align="center"><a href="javascript:void(0)" iconCls="icon-save" class="easyui-linkbutton" onClick="OnSubmit()">保存发送任务</a></td>
  </tr>
<tr>
  <td height="30" colspan="3" align="center">测试邮箱地址:<input name="test" type="text" size="60"/><a href="javascript:void(0)" iconCls="icon-ok" class="easyui-linkbutton" onClick="OnSendTest()"> 发送测试</a></td>
  </tr>
</form>
</table>
</body>
</html>
